﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Main.Master" AutoEventWireup="true"
    CodeBehind="ProductionManage.aspx.cs" Inherits="ATW.MT.SellManage.ProductionManage" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cp01" runat="server">
    <div class="main_hd">
        <h2 style="padding: 0px 20px;">
            产品管理
        </h2>
        <div class="title_tab" id="topTab">
            <ul>
                <li>产品名称：&nbsp;<input type="text" id="txtName" runat="server" />
                    &nbsp; &nbsp; &nbsp;
                    <asp:Button runat="server" ID="btnSearch" Text="搜索" class="MaintenanceButton" OnClick="btnSearch_Click"
                        Style="background: #d91913; outline: none; border: none; color: White; padding: 5px 20px;" />
                    &nbsp; &nbsp; &nbsp;
                    <input type="button" value="新增产品" class="queryButton" id="btnAdd" />
                </li>
            </ul>
            <ul>
                <li>
                    <asp:Label runat="server" ID="lblError" ForeColor="Red" Font-Bold="true"></asp:Label></li>
            </ul>
        </div>
        <asp:Repeater ID="rpList" runat="server">
            <HeaderTemplate>
                <table width="95%" border="0" cellpadding="0" cellspacing="0" style="font-size: 14px"
                    class="queryResultTable">
                    <tr>
                        <th>
                            产品名称
                        </th>
                        <th>
                            产品图片
                        </th>
                        <th>
                            描述数量
                        </th>
                        <th>
                            产品系数
                        </th>
                        <th>
                            创建时间
                        </th>
                        <th>
                            参数管理
                        </th>
                        <th>
                            操作
                        </th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <asp:Label runat="server" ID="lblName" Text='<%#Eval("Desc").ToString()%>'></asp:Label>
                    </td>
                    <td>
                        <asp:Image runat="server" ID="img" Width="40px" Height="40px" ImageUrl=' <%#Eval("imgUrl").ToString() %>' />
                    </td>
                    <td>
                        <asp:LinkButton runat="server" ID="lbnDesc" OnClick="lbnDesc_Click" CommandArgument='<%#Eval("ProductionID").ToString() %>'>
                        <%#Eval("num").ToString() %></asp:LinkButton>
                    </td>
                    <td>
                        <%#Eval("rate").ToString() %>
                    </td>
                    <td>
                        <%#Eval("create_time").ToString()%>
                    </td>
                    <td>
                        <asp:LinkButton runat="server" ID="lbnArgs" OnClick="lbnArgs_Click" CommandArgument='<%#Eval("ProductionID").ToString() %>'>管理</asp:LinkButton>
                    </td>
                    <td>
                        <a args='<%#Eval("ProductionID").ToString() %>' class="btnEdit">编辑</a>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
        <cc1:AspNetPager ID="AspNetPager1" Style="float: right" runat="server" PageSize="10"
            AlwaysShow="true" CssClass="paginator" CurrentPageButtonClass="cpb" FirstPageText="首页"
            PagingButtonSpacing="0" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页"
            OnPageChanged="AspNetPager1_pageChanged">
        </cc1:AspNetPager>
    </div>
    <div id="divEdit" style="display: none;">
        <div class="tc_header">
            <h2>
            </h2>
            <a id="hideEdit">
                <img src="../images/chacha.png" width="13" height="13"></a>
        </div>
        <div class="tc_content">
            <div class="tanchu03" style="">
                <table border="0" cellpadding="0" cellspacing="0" width="95%" class="queryResultTable">
                    <tr>
                        <th>
                            产品名称
                        </th>
                        <td>
                            <input type="text" id="txtProName" />
                        </td>
                    </tr>
                    <tr>
                        <th>
                            产品图片
                        </th>
                        <td>
                            <img id="imgCurrent" width="40" height="40" />
                        </td>
                    </tr>
                    <tr>
                        <th>
                            产品系数
                        </th>
                        <td>
                            <input type="text" id="txtRate" />
                        </td>
                    </tr>
                    <tr>
                        <th>
                            上传图片
                        </th>
                        <td>
                            <input name="txtFile" type="file" id="txtFile" />
                            <input type="button" value="上传" id="btnUpload" class="queryButton" />
                            <asp:HiddenField runat="server" ID="hdfProductionID" />
                            <asp:HiddenField runat="server" ID="hdfImg" />
                        </td>
                    </tr>
                </table>
                <div style="text-align: center">
                    <input type="button" value="保存" id="btnSave" class="queryButton" />
                </div>
            </div>
        </div>
    </div>
    <div id="divMsg" style="display: none;">
        <div class="tc_header">
            <h2>
                提示</h2>
            <a id="hideMsg">
                <img src="../images/chacha.png" width="13" height="13"></a>
        </div>
        <div class="tc_content">
            <div class="tanchu03" style="">
                <p id="msgContent">
                </p>
            </div>
        </div>
    </div>
    <div id="divUploading" style="display: none;">
        <div class="tc_header">
            <h2>
                提示</h2>
        </div>
        <div class="tc_content">
            <div class="tanchu03" style="">
                <p id="P1">
                    正在上传,请稍后。。。
                </p>
            </div>
        </div>
    </div>
    <script type="text/javascript" src="../Scripts/ajaxFileUpload.js"></script>
    <script type="text/javascript" src="../Scripts/ProductionManage.js"></script>
</asp:Content>
